<template>
	<span @click="showMenu">
		<el-icon-expand v-if="collapse" style="margin-right: 20px;">
		</el-icon-expand>
		<el-icon-fold v-else style="margin-right: 20px;">
		</el-icon-fold>
	</span>
</template>

<script lang="ts" setup>
	import {
	  Document,
	  Menu as IconMenu,
	  Location,
	  Setting,
	} from '@element-plus/icons-vue'
	let props = defineProps <{collapse: boolean}>()
	let emits = defineEmits(['update:collapse'])
	let showMenu = () => {
		// console.log('000')
		emits('update:collapse', !props.collapse)
	}
</script>

<style scoped>
</style>